# Project Needs a name ofcourse
project(plasma-tallergmailcalendar)
 
# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )
 
# We add our source code here
set(tallergmailcalendar_SRCS tallergmailcalendar.cpp)
 
# Now make sure all files get to the right place
kde4_add_ui_files(tallergmailcalendar_SRCS crearevento.ui autenticacion.ui) #farosasar

kde4_add_plugin(plasma_applet_tallergmailcalendar ${tallergmailcalendar_SRCS})
target_link_libraries(plasma_applet_tallergmailcalendar 
                      ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} -L/usr/local/lib -lcurlpp -lstdc++ -lcurl -lxml++-2.6 -lxml2 -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0)
 
install(TARGETS plasma_applet_tallergmailcalendar
        DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-applet-tallergmailcalendar.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})
